Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for non-keyed, regular hash functions #37

Closed

Conversation

praseodym
Copy link
Contributor

@praseodym praseodym commented Jun 16, 2018

Fixes #18

Example output:

{
       "sequence" => 0,
     "@timestamp" => 2018-06-16T20:17:49.308Z,
           "host" => "hostname",
       "@version" => "1",
    "fingerprint" => "c0535e4be2b79ffd93291305436bf889314e4a3faec05ecffcbb7df31ad9e51a",
        "message" => "Hello world!"
}

Config:

input {
	generator {
		count => 1
	}
}

filter {
	fingerprint {
		method => SHA256
	}
}

output {
	stdout {
		codec => rubydebug {
			metadata => true
		}
	}
}

This reflects the name and purpose of the plugin.
@jakelandis
Copy link
Contributor

@praseodym - thanks for the contribution, the changes look great !

Would you minding adding a spec or two to that tests this change ?

@praseodym
Copy link
Contributor Author

@jakelandis done!

@jakelandis
Copy link
Contributor

@praseodym - thanks, I'll get this merged and released.

@elasticsearch-bot
Copy link

Jake Landis merged this into the following branches!

Branch Commits
master ecca47b, 119e941

elasticsearch-bot pushed a commit that referenced this pull request Jun 19, 2018
@praseodym praseodym deleted the regular-hash-functions branch June 19, 2018 21:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants